package cndw.jgf.start;

import org.apache.commons.daemon.Daemon;
import org.apache.commons.daemon.DaemonContext;
import org.apache.commons.daemon.DaemonInitException;

import cndw.core.GameServer;

/**
 *
 * @author zuojie.x
 * @date 2012-8-9 下午2:49:02
 */
public class GameServerBootstrap implements Daemon {
	public static void main(String[] args) {
		GameServerBootstrap bootstrap = new GameServerBootstrap();
		try {
			bootstrap.start();
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
	
	public void init(DaemonContext context) throws DaemonInitException,
			Exception {
		
	}

	public void start() throws Exception {
		GameServer.start();
	}

	public void stop() throws Exception {
		GameServer.stop();
	}

	public void destroy() {
	}
}
